<template>
  <div class="uHead">
    <van-nav-bar
      id="nav-bar"
      @click-left="onClickLeft"
      :title=title
      left-arrow/>
  </div>
</template>
<script>
export default {
    props:["title"],
    methods:{
      onClickLeft() {
      sessionStorage.removeItem("keywords")
      this.$router.go(-1)
    },
    }
};
</script>
<style scoped>
.uHead{
  max-width: 7.5rem;
  min-width: 3.2rem;
  height: 0.88rem;
}
.uHead #nav-bar /deep/ div{
  background: red;
  color: white;
}
</style>
